#ifndef DEF_MEMOIRE
#define DEF_MEMOIRE

#define TAILLE_MEM 8100	//90 squared

#include "out_Instruction.h"
#include "SDL/SDL.h"
#include "out_drawing.h"

#define PAS 8
#define LARGEUR 90*PAS+1	//root(TAILLE_MEM) *PAS+1
#define HAUTEUR 90*PAS+1

class Memoire{
public:
	Memoire();
    Instruction& operator[](unsigned int i);//allow the object to be used as an array. + Check if the value is higher than 8000.
	void raz();	//clear all the memory: fill all cell with DAT 0
	void raz(int a, int b); //clear memory between a and b
	void setCouleur(int a, int b, SDL_Surface *ecran, Uint32 couleurs[], int mode);	//set the color of the memory between a and b.

private:
	Instruction m_tmemoire[TAILLE_MEM];
};

#endif




